import { postForm } from '../request'

const prefix = '/ytdzdt-server'

export const getObjIdByTableName = params => postForm(`${prefix}/TaskDomain/TaskService/getObjIdByTableName/v1`, params);

export const getFieldInfo = params => postForm(`${prefix}/TaskDomain/TaskService/getTaskFieldsConfig/v1`, params);

export const getDicTree = params => postForm(`${prefix}/TaskDomain/TaskService/getDicTree/v1`, params);
// export const getDicTree = () => postForm(`${prefix}/TaskDomain/TaskService/getDicTree/v1`, { ids: '10012556,10012550,10012551,10012552,10012558,10012562' });

export const getTbInfo = params => postForm(`${prefix}/TaskDomain/TaskService/getTbInfo/v1`, params);

export const getExamineMediaListApi = params => postForm(`${prefix}/TaskDomain/AppMediaService/getMediaList/v1`, params);